/**
 * <p>Copyright (c) 2011 深圳市鹏途信息技术有限公司 </p>
 * <p>				   All right reserved. 		     </p>
 * 
 * <p>项目名称 ： 	东莞交通工程质量监督综合业务系统        </p>
 * <p>创建者   :	ce 
 * 
 * <p>描   述  :   JfreeChartFactory.java for com.pengtu.integration.chart    </p>
 * 
 * <p>最后修改 : $: 2011-8-18-上午10:10:55 v 1.0.0	 ce   $     </p>
 * 
*/

package com.pengtu.integration.chart;


/**
 * 
 * JfreeChartFactory
 * 
 * 2011-8-18 上午10:10:55
 * 
 * @version 1.0.0
 * 
 */
public class JfreeChartFactory {
	
	
	public static JfreeChartBean  createJfreeChartBean(){
		
		 JfreeChartBean jpo = new JfreeChartBean();
		 jpo.setChartType(JfreeChartBean.BAR_CHARTTYPE);
		 jpo.setOutPutType(JfreeChartBean.FILE_OUTPUTTYPE);
		 jpo.setTitle("e3333");
		 jpo.setXTitle("33332232");
		 jpo.setYTitle("dsfadsfdsafdsa");
		 jpo.set3D(false);
		 jpo.setColumnKeys(new String [] {"Corejava","JavaWeb","易用struts","精通JSF"});
		 jpo.setRowKeys(new String [] {"北京","上海","深圳"});
		 jpo.setFileName("D:\\mybook-pie3.png");
		 jpo.setDataList(new double [][] { {5000,200,333,3330},{33,444,4443,4334},{3333,4444,4443,4334}});
		return jpo;
	}
	
	public static JfreeChartBean  createBarOutForFile(String title ,String Xtile,String Ytitle,String FileName,String[] columnKeys,String[] rowKeys,double[][] dataList){
		 JfreeChartBean jpo = new JfreeChartBean();
		 jpo.setChartType(JfreeChartBean.BAR_CHARTTYPE);
		 jpo.setOutPutType(JfreeChartBean.FILE_OUTPUTTYPE);
		 jpo.set3D(false);
		 jpo.setFileName(FileName);
		 jpo.setColumnKeys(columnKeys);
		 jpo.setRowKeys(rowKeys);
		 jpo.setDataList(dataList);
		  return jpo;
	}

	/**
	 * main:
	 * 适用:
	 * @param args 
	 * @exception 
	 * @since  1.0.0
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
